﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;

namespace BCDto.OA.WorkflowActive.WorkflowActivityStepReviewer
{
	/// <summary>
	/// 工作流活动步骤审核人
	/// </summary>
	public class WorkflowActivityStepReviewerRequestDto
	{
		/// <summary>
		/// 工作流分类Id
		/// </summary>		
		[Display(Name = "工作流分类Id")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public long WorkflowCategoryId { get; set; }
		/// <summary>
		/// 工作流活动Id
		/// </summary>		
		[Display(Name = "工作流活动Id")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public long WorkflowActivityId { get; set; }
		/// <summary>
		/// 工作流模板步骤Id
		/// </summary>
		[Display(Name = "工作流模板步骤Id")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public long WorkflowActivityStepId { get; set; }
		/// <summary>
		/// 分类Code
		/// </summary>		
		[Display(Name = "分类Code")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string CategoryCode { get; set; }
		/// <summary>
		/// 分类名称
		/// </summary>		
		[Display(Name = "分类名称")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(30, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string CategoryName { get; set; }
		/// <summary>
		/// 工作流Code
		/// </summary>		
		[Display(Name = "工作流Code")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string WorkflowCode { get; set; }
		/// <summary>
		/// 工作流名称
		/// </summary>		
		[Display(Name = "工作流名称")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(100, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string WorkflowName { get; set; }
		/// <summary>
		/// 步骤Code
		/// </summary>		
		[Display(Name = "步骤Code")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string StepCode { get; set; }
		/// <summary>
		/// 公司Id
		/// </summary>		
		[Display(Name = "公司Id")]
		public int? CompanyId { get; set; }
		/// <summary>
		/// 部门Id
		/// </summary>		
		[Display(Name = "部门Id")]
		public int? DepartmentId { get; set; }
		/// <summary>
		/// 人员Id
		/// </summary>		
		[Display(Name = "人员Id")]
		public long? AdminId { get; set; }
		/// <summary>
		/// 其他人员Id
		/// </summary>		
		[Display(Name = "其他人员Id")]
		public long? OtherUserId { get; set; }
		/// <summary>
		/// 通知标题
		/// </summary>		
		[Display(Name = "通知标题")]
		[StringLength(200, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string NotificationTitle { get; set; }
		/// <summary>
		/// 读取时间
		/// </summary>		
		[Display(Name = "读取时间")]
		public DateTime? ReadTime { get; set; }
		/// <summary>
		/// 处理时间
		/// </summary>		
		[Display(Name = "处理时间")]
		public DateTime? HandleTime { get; set; }
	}
}

